<?php
	$list = $_->product->_select(array('id','title','catename'),array('DESC'=>'addtime'));
	$catename = $_->product->_select(array('cates as cid,catename as cname'),array('GROUP'=>'cates'));
	$jscatename = '0';
	if($catename):
		foreach($catename as $val)
		{
			$jscatename .='","'.$val['cname'];
		}
	endif;
	$smarty->_assign(array('list','catename','jscatename'));
	$smarty->_display();
?>